home *** CD-ROM | disk | FTP | other *** search
- Tom's Plasma! by Tom Dibble, Copyright 1994
-
-
- *TPLAS MANUAL*
-
-
-
- AUTHOR'S NOTE:
-
- (See current version documentation for more details.)
-
- First off, you'll need a 'C' compiler and an assembler to get anywhere
- with these files. I use Borland C/C++ 3.0, so I know this compiles
- and assembles with no difficulties with that package. Other packages
- I can not guarantee. The first thing you need to do is compile the
- data file generator (the *.c file is its source) and run it.
-
- DO NOT RUN THE REVISION 1.1 GENERATOR IN THE DIRECTORY HOLDING THE
- REVISION 2.0 DATA FILE!!!
-
- Run it anywhere else, though. Then, assemble and link the assembly
- file (tplas.asm) as a '.com' file (/t switch in tlink). Run the
- program in the same directory you ran the data-file generator.
- That's all you need to do. Just be sure not to get the two mixed
- up; the 1.1 data file will not work with the revision 2.0 program,
- nor vice-versa!
-
- If you would like to see more effects added to this code, and a
- great deal of modularity added, register the current revision of
- the program and ask for a copy of the source code. The usage
- license on the newer code is identicle to that of this revision,
- allowing for free usage as long as I am acknowledged and the code
- is significantly altered or added to. See below for more details.
-
-
- USAGE LICENSE:
-
- I coded this because I enjoyed it, and I needed something new and
- interesting to put up on my screen.
-
- With that in mind, I hereby give full permission to anyone reading
- this note to use all code listed in the accompanying files in any
- manner which he or she sees fit, so long as I am mentioned in the
- credits and any code directly derived from my own allows these
- same freedoms of use. That means, use it as you want, give me
- credit, and don't stop anyone else from using it.
-
- If you want to contact me about anything here, this is where I can
- be reached until May, 1996 (or 1995, if I don't get into the MS
- program!):
-
- tomster@wpi.wpi.edu
-
- Or, via the good old post office, at
-
- Tom Dibble
- WPI box 2466
- Worcester, MA 01609
-
- My mailbox is always open!
-
- Tom Dibble
- 3-18-94
-
-
- KEYBOARD COMMANDS:
-
- <Space> Toggle the swim window on and off.
- <Enter> Generate a new fractal.
- '1'-'3' Variable smoothness. '1' (rough) is default.
- <Esc> Get the hell out of here!
-
-
- DATA FILE:
-
- The data file for this revision of the program (1.1) is revision 1.1.
- An earlier data file (made by PLASDAT version 1.0) will not work
- properly as the color section for that version was ten times as large
- (for no real reason; I still only read 4 palettes). Likewise, this
- version of the data file will not work with an earlier version of the
- program. The result of using revision 1.0 with this data file would
- be a "Random" array filled with -1 or 0: whichever, an un-interesting
- display. Also, revisions past 1.1 can not use this data file. Make
- sure you don't clobber your new-version data file by running the
- data-file generator! Of course, the generator for the newer version
- should be available, so you can reconstruct in such an emergency.
-
- The data file is somewhat large at >100k, but it holds information
- vital to the program. The first 40,000 bytes is movement data for
- the two pointers. This is an expansion of a sin/cos function. The
- next 3,072 bytes is the color palette. Currently, the palette holds
- four full palettes, or 1024 colors. Each byte is a red, blue, or
- green index from 0 to 63. The last 64k is the array of random numbers
- for the plasma generator.
-
-
- REVISION HISTORY:
-
- This is by no means a finished work. I don't know how much more
- I'll do with it before sending it to the great archive in the sky,
- but, time permitting, I plan to do a bit more with it at least.
- Some delays in the code would be nice, so that it doesn't blur by
- so bad on 486's and lord knows what it would do on a pentium!
- Geesh, just thinking about the speed-up with a decent video card or
- VLB ... Anyways, this is where it is now and where it's been, for
- what it's worth.
-
- March 19, 1994: Revision 1.1
-
- Fixed all bugs which had caused anomalies in the fractal
- (involved overflow of byte values). Shrunk the data file by
- about 28k by reducing the palette stored to that which we used
- (four full palettes, not 40). Added lots of keyboard
- commands: <Space> to toggle swim window on and off, <Enter>
- for a new fractal; '1', '2', and '3' for progressively
- smoother fractals ('1' is default). <Esc> is now the only key
- which exits. This is also the first version to be uploaded
- for public consumption (I had 1.0 all packaged and ready to
- go, then decided I'd better fix those bugs ... and I suppose
- I got carried away ... :-> ). Source code, for what it's
- worth, included in package, along with data file generator
- source and executable. Oh, I cleaned up the code a bit as
- well, using the ARG directive rather than obscure equates,
- adding a few helpful comments, etc.
-
- March 3, 1994: Revision 1.0
-
- The first working version! Start it up, watch it go! Hit any
- key and it's outta there! Simple, but cool.
-